<%@page import="com.qdu.dao.UserLoginDao"%>
<%@page import="com.qdu.dao.Recommend"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="java.util.List"%>
<%@page import="java.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
    <head><title>登陆进入页面</title>
        <link rel=stylesheet href="/J02_T13_P04/img/ys1.css" type=text/css >
        <style type=text/css>
            body {
                margin-top: 0px; margin-left: 0px 
            }
            .style1 {
                color: #680c0c
            }
        </style>
</head>
    <%
            String name=(String)session.getAttribute("name");
            if(name!=null)
    {	
            String jibie=new UserLoginDao().getJiBie(name).trim();
            int f=0;
            if(jibie.equals("普通")){
                    f=9;
            }
            else if(jibie.equals("银卡")){
                    f=8;
            }
            else if(jibie.equals("金卡")){
                    f=7;
            }     
    %>
    <body text=#000000 bgColor=#efefef>
        <table cellSpacing=0 cellPadding=0 width=515 align=center border=0>
            <tbody>
                <tr>
                    <tr width=515 align=center><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                         欢迎您，尊敬的会员<%=name %>&nbsp;&nbsp;<%=jibie %>级会员，可享受<%=f %>折优惠&nbsp;&nbsp;
                                         <a href="center.jsp" target="_parent">会员中心</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                         <a href="loginout?method=user">退出登陆</a>
        </td>
                </tr>
                 </tbody>
                  </table>
                    </body>
<%
     }else{
                        response.sendRedirect("loign.jsp");
                } %>   
</html>

